package com.ljx.itbbs.server.article.domain.vo.resp;

import com.ljx.itbbs.server.article.domain.entity.ResourceEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-31  23:41
 */
@Data
public class ArticleUpdateInfoResp {

    @ApiModelProperty("文章ID")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("封面")
    private String cover;

    @ApiModelProperty("文章板块")
    private Long plateId;

    @ApiModelProperty("文章分类")
    private Long categoryId;

    @ApiModelProperty("文章标签")
    private List<String> tagList;

    @ApiModelProperty("附件资源")
    private List<ResourceInfo> resources;

    @ApiModelProperty("是否收费")
    private Integer isFree;

    @ApiModelProperty("所需积分")
    private Integer integral;


    @Data
    public class ResourceInfo implements Serializable {
        private Long id;

        private String filename;

        private Long filesize;

        private String fileType;
    }
}
